package com.yx.system.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.yx.system.entity.TdBanner;
import com.yx.system.entity.TdSection;

import java.util.List;
import java.util.Map;

public interface TdSectionService {

    int deleteByPrimaryKey(Integer id);

    int insert(TdSection record);

    int insertSelective(TdSection record);

    TdSection selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TdSection record);

    int updateByPrimaryKey(TdSection record);

    Page<TdSection> queryPageList(Page<TdSection> pageUtil, Map<String, Object> map);
    /**
     * 查询列表
     */
    List<TdSection> queryList(Map<String, Object> map);

    /**
     * 查询总数
     */
    int queryTotal(Map<String, Object> map);

    List<TdSection> findByBookid(Integer bookid);

    List<TdSection> findByVolumeId(Integer id);

    List<Integer> findSectionIds(Integer bookId);

    List<Integer> findIdList(Integer bookid);
}
